package com.example.design.service.impl;

import com.example.design.constant.StrategySelector;
import com.example.design.service.Strategy;
import org.springframework.stereotype.Service;

/**
 * @Description: 策略A
 * @Author Hong Qiang
 * @Date 2023/3/10 16:13
 * @Version 1.0
 */
@Service
public class ConcreteStrategyA implements Strategy {
    @Override
    public String strategy() {
        return StrategySelector.strategyA.getStrategy();
    }

    @Override
    public void algorithm() {
        System.out.println("process with strategyA...");
    }
}
